package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:Commercial
 * @Description:商户业态表
 * @Author:xiongjunbao
 * @Date:2019/3/11 12:07
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_commercial")
public class Commercial implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;

    @Column(name = "update_time", nullable = false, length = 32)
    private String updateTime;

    /**
     * 是否显示：0显示，1不显示
     */
    @Column(name = "status_show", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusShow;

    /**
     * 是否删除：0未删除，1删除
     */
    @Column(name = "status_remove", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusRemove;

    @Column(name = "name", length = 32)
    private String name;

    /**
     * 业态等级1、2、3依次为一二三级业态
     */
   /* @Column(name = "level", nullable = false, columnDefinition = "TINYINT")
    private Integer level;*/

    /**
     * 内键关联父级业态id
     */
    /*@Column(name = "parent_id", nullable = false, length = 64)
    private String parentId;*/

    @Column(name = "sort_order", columnDefinition = "INT")
    private Integer sortOrder;

    /**
     * 消费多少金额记一积分
     */
    private Integer percent;

    /**
     * 图标
     */
    private String iamge;

    /**
     * 图片
     */
    private String picture;

}
